<%@page import="java.text.SimpleDateFormat" %>
<%@page import="beans.ResourceSchedule" %>
<%@page import="beans.Person" %>
<%@page import="beans.Project" %>
<%@page import="beans.Resource" %>

<jsp:useBean id="person" class="beans.Person" scope="request"/>
<jsp:useBean id="projects" type="java.util.List" scope="request"/>
<jsp:useBean id="msg" class="java.lang.String" scope="request"/>


<html>
<body>
<% if (msg != null && !"".equals(msg)) { %>
Error: <%=msg %> <br>
<% } %>
<p>

<form method="post" action="AdminServlet">    
Add: <%=person.email %> to:
<p> Project:
<select name="proj_id">
<%  for (int i = 0; i < projects.size(); i++) { %>
<%    Project p = (Project) projects.get(i);    %>
	  <option value="<%= p.id %>"><%=p.title %></option>
<%  } %>
</select>

Start Date: <input type="text" size="10" maxlength="10" name="startDate"/>
End Date: <input type="text" size="10" maxlength="10" name="endDate"/>
Percent: <input type="text" size="3" maxlength="3" name="percent"/>
<input type="hidden" name="person_id" value="<%= person.id %>"/>
<input type="hidden" name="act" value="assignPersonProject_two"/>
<input type="submit" value="Assign to Project"/>
</form>

</body>
</html>